package com.example.springbootdemo;

import com.example.springbootdemo.bean.FastDfsProperties;
import com.example.springbootdemo.bean.FileProperties;
import com.example.springbootdemo.bean.QuartzJobProperties;
import com.example.springbootdemo.bean.SwaggerProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

/**
 * 1. 可以在SpringBootApplication中配置exclude = SecurityAutoConfiguration.class来关闭Spring Security的登录验证功能
 * @author hh
 * @date 2022/1/19
 */
@EnableConfigurationProperties({
        QuartzJobProperties.class,
        SwaggerProperties.class,
        FileProperties.class,
        FastDfsProperties.class
})
@EnableElasticsearchRepositories
@SpringBootApplication
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
    }

}
